package cn.shyouchi.wuguanjia.android.ui.meetting.common;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by Eenie on 2017/2/8 at 15:03
 * Email: 472279981@qq.com
 * Des:
 */

public class MeetPerson implements Parcelable {

    private int id;
    private String name;
    private String id_card_head_image;
    private boolean isCheck;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }


    public boolean isCheck() {
        return isCheck;
    }

    public void setCheck(boolean check) {
        isCheck = check;
    }

    public String getId_card_head_image() {
        return id_card_head_image;
    }

    public void setId_card_head_image(String id_card_head_image) {
        this.id_card_head_image = id_card_head_image;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(this.id);
        dest.writeString(this.name);
        dest.writeString(this.id_card_head_image);
        dest.writeByte(this.isCheck ? (byte) 1 : (byte) 0);
    }

    public MeetPerson() {
    }

    protected MeetPerson(Parcel in) {
        this.id = in.readInt();
        this.name = in.readString();
        this.id_card_head_image = in.readString();
        this.isCheck = in.readByte() != 0;
    }

    public static final Parcelable.Creator<MeetPerson> CREATOR = new Parcelable.Creator<MeetPerson>() {
        @Override
        public MeetPerson createFromParcel(Parcel source) {
            return new MeetPerson(source);
        }

        @Override
        public MeetPerson[] newArray(int size) {
            return new MeetPerson[size];
        }
    };
}
